package com.qingyue.day01;

import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.web.context.support.XmlWebApplicationContext;

public class TestMain03 {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
		XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(context);
		int i = reader.loadBeanDefinitions("classpath:spring.xml");
		System.out.println(i);
		System.out.println(context.getBean(User.class));

	}
}
